﻿Imports System.ComponentModel.DataAnnotations
Public Enum LogTypes
    Information
    Warning
    [Error]
End Enum

Public Class Log
    Public Property LogId As Int64
    Public Property Logged As DateTimeOffset = DateTimeOffset.Now
    Public Property LogType As LogTypes
    <Required> <MaxLength(256)>
    Public Property Source As String
    Public Property Message As String
    <MaxLength(128)>
    Public Property User As String
End Class